//WdgShading.cpp
/*    widgetpp - A simple C++ wrapper of DISLIN graphic library               */
/*                                                                            */
/*    Copyright (C) 2012  Mirko Cambi (email: mirko.cambi@gmail.com)          */
/*                                                                            */
/*    This program is free software: you can redistribute it and/or modify    */
/*    it under the terms of the GNU General Public License as published by    */
/*    the Free Software Foundation, either version 3 of the License, or       */
/*    (at your option) any later version.                                     */
/*                                                                            */
/*    This program is distributed in the hope that it will be useful,         */
/*    but WITHOUT ANY WARRANTY; without even the implied warranty of          */
/*    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           */
/*    GNU General Public License for more details.                            */
/*                                                                            */
/*    You should have received a copy of the GNU General Public License       */
/*    along with this program.  If not, see <http://www.gnu.org/licenses/>.   */

#include "WdgShading.hpp"
#include "dislin.h"

void wdgpp::shading_pattern(int pat)
{
   shdpat(pat);   
}

const int
   wdgpp::shading::type::no_lines            = 0,
   wdgpp::shading::type::equidistant_lines   = 1,
   wdgpp::shading::type::double_lines        = 2,       
   wdgpp::shading::type::triple_lines        = 3,
   wdgpp::shading::type::thick_lines         = 4,
   wdgpp::shading::type::dotted_lines        = 5,
   wdgpp::shading::type::dashed_lines        = 6,
   wdgpp::shading::type::dashed_dotted_lines = 7;

const int
   wdgpp::shading::distance::zero  = 0,
   wdgpp::shading::distance::one   = 1,
   wdgpp::shading::distance::two   = 2,
   wdgpp::shading::distance::three = 3,
   wdgpp::shading::distance::four  = 4,
   wdgpp::shading::distance::five  = 5,
   wdgpp::shading::distance::six   = 6,
   wdgpp::shading::distance::seven = 7,
   wdgpp::shading::distance::eight = 8,
   wdgpp::shading::distance::nine  = 9; 
   
const int
   wdgpp::shading::cross::not_hatched  = 0,
   wdgpp::shading::cross::hatched      = 1;
   
void wdgpp::custom_shading_pattern(int angle, int type, int dens, int cross)
{
   mypat(angle, type, dens, cross);   
}

